if ("AArch64" IN_LIST LLVM_TARGETS_TO_BUILD)
  add_subdirectory(MacOSX-arm64)
  add_subdirectory(SysV-arm64)
endif()
if ("ARM" IN_LIST LLVM_TARGETS_TO_BUILD)
  add_subdirectory(MacOSX-arm)
  add_subdirectory(SysV-arm)
endif()
if ("ARC" IN_LIST LLVM_TARGETS_TO_BUILD)
  add_subdirectory(SysV-arc)
endif()
if ("Hexagon" IN_LIST LLVM_TARGETS_TO_BUILD)
  add_subdirectory(SysV-hexagon)
endif()
if ("Mips" IN_LIST LLVM_TARGETS_TO_BUILD)
  add_subdirectory(SysV-mips)
  add_subdirectory(SysV-mips64)
endif()
if ("PowerPC" IN_LIST LLVM_TARGETS_TO_BUILD)
  add_subdirectory(SysV-ppc)
  add_subdirectory(SysV-ppc64)
endif()
if ("SystemZ" IN_LIST LLVM_TARGETS_TO_BUILD)
  add_subdirectory(SysV-s390x)
endif()
if ("X86" IN_LIST LLVM_TARGETS_TO_BUILD)
  add_subdirectory(SysV-i386)
  add_subdirectory(SysV-x86_64)
  add_subdirectory(MacOSX-i386)
  add_subdirectory(Windows-x86_64)
endif()
